Optimal. Leaf size=58 \[ \frac {x^2 (d+e x)}{3 d e \left (d^2-e^2 x^2\right )^{3/2}}-\frac {2}{3 e^3 \sqrt {d^2-e^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {810, 12, 267}
\begin {gather*} \frac {x^2 (d+e x)}{3 d e \left (d^2-e^2 x^2\right )^{3/2}}-\frac {2}{3 e^3 \sqrt {d^2-e^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 267
Rule 810
Rubi steps
\begin {align*} \int \frac {x^2 (d+e x)}{\left (d^2-e^2 x^2\right )^{5/2}} \, dx &=\frac {x^2 (d+e x)}{3 d e \left (d^2-e^2 x^2\right )^{3/2}}-\frac {\int \frac {2 d^2 e x}{\left (d^2-e^2 x^2\right )^{3/2}} \, dx}{3 d^2 e^2}\\ &=\frac {x^2 (d+e x)}{3 d e \left (d^2-e^2 x^2\right )^{3/2}}-\frac {2 \int \frac {x}{\left (d^2-e^2 x^2\right )^{3/2}} \, dx}{3 e}\\ &=\frac {x^2 (d+e x)}{3 d e \left (d^2-e^2 x^2\right )^{3/2}}-\frac {2}{3 e^3 \sqrt {d^2-e^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 59, normalized size = 1.02 \begin {gather*} \frac {\sqrt {d^2-e^2 x^2} \left (-2 d^2+2 d e x+e^2 x^2\right )}{3 d e^3 (d-e x)^2 (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(119\) vs.
\(2(50)=100\).
time = 0.06, size = 120, normalized size = 2.07
method | result | size |
gosper | \(-\frac {\left (-e x +d \right ) \left (e x +d \right )^{2} \left (-e^{2} x^{2}-2 d e x +2 d^{2}\right )}{3 d \,e^{3} \left (-e^{2} x^{2}+d^{2}\right )^{\frac {5}{2}}}\) | \(55\) |
trager | \(-\frac {\left (-e^{2} x^{2}-2 d e x +2 d^{2}\right ) \sqrt {-e^{2} x^{2}+d^{2}}}{3 e^{3} d \left (-e x +d \right )^{2} \left (e x +d \right )}\) | \(57\) |
default | \(e \left (\frac {x^{2}}{e^{2} \left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}-\frac {2 d^{2}}{3 e^{4} \left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}\right )+d \left (\frac {x}{2 e^{2} \left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}-\frac {d^{2} \left (\frac {x}{3 d^{2} \left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}+\frac {2 x}{3 d^{4} \sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 e^{2}}\right )\) | \(120\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 80, normalized size = 1.38 \begin {gather*} \frac {x^{2} e^{\left (-1\right )}}{{\left (-x^{2} e^{2} + d^{2}\right )}^{\frac {3}{2}}} + \frac {d x e^{\left (-2\right )}}{3 \, {\left (-x^{2} e^{2} + d^{2}\right )}^{\frac {3}{2}}} - \frac {2 \, d^{2} e^{\left (-3\right )}}{3 \, {\left (-x^{2} e^{2} + d^{2}\right )}^{\frac {3}{2}}} - \frac {x e^{\left (-2\right )}}{3 \, \sqrt {-x^{2} e^{2} + d^{2}} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 98 vs.
\(2 (47) = 94\).
time = 1.96, size = 98, normalized size = 1.69 \begin {gather*} -\frac {2 \, x^{3} e^{3} - 2 \, d x^{2} e^{2} - 2 \, d^{2} x e + 2 \, d^{3} - {\left (x^{2} e^{2} + 2 \, d x e - 2 \, d^{2}\right )} \sqrt {-x^{2} e^{2} + d^{2}}}{3 \, {\left (d x^{3} e^{6} - d^{2} x^{2} e^{5} - d^{3} x e^{4} + d^{4} e^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 3.75, size = 231, normalized size = 3.98 \begin {gather*} d \left (\begin {cases} \frac {i x^{3}}{- 3 d^{5} \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}} + 3 d^{3} e^{2} x^{2} \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} & \text {for}\: \left |{\frac {e^{2} x^{2}}{d^{2}}}\right | > 1 \\- \frac {x^{3}}{- 3 d^{5} \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}} + 3 d^{3} e^{2} x^{2} \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} & \text {otherwise} \end {cases}\right ) + e \left (\begin {cases} \frac {2 d^{2}}{- 3 d^{2} e^{4} \sqrt {d^{2} - e^{2} x^{2}} + 3 e^{6} x^{2} \sqrt {d^{2} - e^{2} x^{2}}} - \frac {3 e^{2} x^{2}}{- 3 d^{2} e^{4} \sqrt {d^{2} - e^{2} x^{2}} + 3 e^{6} x^{2} \sqrt {d^{2} - e^{2} x^{2}}} & \text {for}\: e \neq 0 \\\frac {x^{4}}{4 \left (d^{2}\right )^{\frac {5}{2}}} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.59, size = 55, normalized size = 0.95 \begin {gather*} \frac {\sqrt {d^2-e^2\,x^2}\,\left (-2\,d^2+2\,d\,e\,x+e^2\,x^2\right )}{3\,d\,e^3\,\left (d+e\,x\right )\,{\left (d-e\,x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________